package com.sf.webside.dao;

import com.sf.webside.entity.CmsArticleDataEntity;
import com.sf.webside.entity.SysUserEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * Created by tanjing on 2019/2/21.
 */
@Repository
public interface CmsArticleDataDao extends JpaRepository<CmsArticleDataEntity,String>,JpaSpecificationExecutor<CmsArticleDataEntity>{
    /**
     * 根据id查询文章内容
     * @param id
     * @return
     */
    CmsArticleDataEntity findByIdAndDelFlag(String id,String delFlag);
}
